package com.example.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

/**
 * Created by ykbboom on 2017/3/5.
 */
@Data
@AllArgsConstructor
@RequiredArgsConstructor
public class UserRequest {
    private Integer requestId;
    private Integer gdIdStart;
    private Integer gdIdStop;
    @NonNull
    private String description;
    @NonNull
    private String place;
    @NonNull
    private String destination;
    @NonNull
    private String time;
    @NonNull
    private String picurl;
    @NonNull
    private Integer userId;
    private Integer complete;
    private Integer accept;
    private Integer notifyFlag;
    @NonNull
    private String latlongStart;
    @NonNull
    private String latlongDes;

    public UserRequest(Integer requestId, Integer gdIdStart, Integer gdIdStop, String description, String place, String destination, String time, String picurl, Integer userId, Integer complete, Integer accept,Integer notifyFlag) {
        this.requestId = requestId;
        this.gdIdStart = gdIdStart;
        this.gdIdStop = gdIdStop;
        this.description = description;
        this.place = place;
        this.destination = destination;
        this.time = time;
        this.picurl = picurl;
        this.userId = userId;
        this.complete = complete;
        this.accept = accept;
        this.notifyFlag = notifyFlag;
    }
}
